
package com.coldchain.gate.ratelimit.config;

import org.springframework.data.annotation.Id;

import java.util.Date;



public class Rate {
    @Id
    private String key;
    private Long remaining;
    private Long reset;
    private Date expiration;

    public Rate(String key, Long remaining, Long reset, Date expiration) {
        this.key = key;
        this.remaining = remaining;
        this.reset = reset;
        this.expiration = expiration;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Long getRemaining() {
        return remaining;
    }

    public void setRemaining(Long remaining) {
        this.remaining = remaining;
    }

    public Long getReset() {
        return reset;
    }

    public void setReset(Long reset) {
        this.reset = reset;
    }

    public Date getExpiration() {
        return expiration;
    }

    public void setExpiration(Date expiration) {
        this.expiration = expiration;
    }
}
